package com.ll.gulimall.serach.vo;

import com.ll.common.to.es.SkuEsModel;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
/**
 * 检索返回数据
 */
public class SearchResult {

    private List<SkuEsModel> products;//数据
    private Integer pageNum;//当前页
    private Long total;//总记录
    private Integer totalPages;//总也树

    private List<Integer> pageNavs;//页码导航

    private List<BrandVo> brands;//品牌信息
    private List<catelogVo> catelogs;//品牌信息
    private List<AttrVo> atts;//属性信息

    private List<Long> attrIds=new ArrayList<>();//包含了那些属性Id

    @Data
    public static  class  BrandVo{
        private Long brandId;
        private String brandName;
        private String brandImg;
    }

    @Data
    public static class AttrVo{
        private Long attrId;
        private String attrName;
        private List<String> attrValue;

    }

    @Data
    public static class catelogVo{
        private Long catalogId;
        private String catalogName;
    }

    /**
     * 导航想
     */
    private List<NavigationVo> navigationVos = new ArrayList<>();


}
